package com.sp2.dev.test.simplefactory;

/**
 * Created by IntelliJ IDEA.
 * User: zhimingli
 * Date: 14-1-23
 * Time: 下午4:12
 * To change this template use File | Settings | File Templates.
 */
public class Rice implements Fruit {

    private String name;

    public Rice(String name) {
        this.name = name;
    }


    public void plant() {
        System.out.println(this.name + "-------Rice--------plant-");
    }

    public void grow() {
        System.out.println(this.name + "--------Rice-------grow-");
    }

    public void harvest() {
        System.out.println(this.name + "-------Rice--------harvest-");
    }
}
